<?php
class User_Form_Interests extends Custom_Form
{
        private $_user_id = '';

	function  __construct($userid = '') {
		$this->_user_id = $userid;
		parent::__construct(null);
	}
    
	public function init()
	{
        
        $translate = Zend_Registry::get('translate');

        $this->setName("general");
        $this->setMethod('post');

        $this->addElement('text', 'fname', 
                                   array('label' => $translate->_('First Name'),
                                         'required' => true,
                                         'filters'=> array('StringTrim'),
                                       
            'validators' => array(array('StringLength', false, array(0, 50)))
        ));

        $this->addElement('text', 'lname', 
                           array('label' => $translate->_('Last Name'), 
                                 'required' => true,
                                 'filters'=> array('StringTrim')));

           

       
        
        $this->addElement('password', 'password',
                           array('label' => $translate->_('Password'),
                                
                                 'filters'=> array('StringTrim')));


        $this->addElement('text', 'user_phone',
                                   array('label' => $translate->_('Phone Number'),
                                         'required' => 'true',
                                         'filters'=> array('StringTrim')));

        $this->addElement('submit', 'submit', 
                                    array('ignore' => true,
                                         'required' => false,
                                          'lable'=>$translate->_('Register'),
                                        ));

        $element = $this->getElement('submit');
        $element->removeDecorator('label');
        
      
	
	}
}
?>